package com.ustc.hewei.nettyrpc2_0.common.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author hewei
 * @version 1.0
 * @description: 序列化类型
 * @date 2022/9/5 19:54
 */

@AllArgsConstructor
public enum SerializerType {

    FAST_JSON(0, "FAST_JSON"),
    KRYO(1, "KRYO"),
    PROTOSTUFF(2, "PROTOSTUFF");

    private final int code;
    private final String type;

    public int getCode() {
        return code;
    }
}
